LEADTOOLS Medical (Leadtools.Dicom assembly)

SetStringValue(DicomElement,String[],DicomCharacterSetType) Method

Show in webframe







An item in the Data Set.
Character string that contains the string value(s) to set. If you want to set multiple values in the Value Field, put all string values in this array.
Character set to use when inserting the input string.
Sets the string value(s) of a Data Element.
Syntax
public bool SetStringValue( 
   DicomElement element,
   string[] value,
   DicomCharacterSetType characterSet
)
'Declaration
 
Public Overloads Function SetStringValue( _
   ByVal element As DicomElement, _
   ByVal value() As String, _
   ByVal characterSet As DicomCharacterSetType _
) As Boolean
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value() As String
Dim characterSet As DicomCharacterSetType
Dim value As Boolean
 
value = instance.SetStringValue(element, value, characterSet)
public bool SetStringValue( 
   DicomElement element,
   string[] value,
   DicomCharacterSetType characterSet
)

            
public boolean setStringValues(DicomElement element, String[] value)
 function Leadtools.Dicom.DicomDataSet.SetStringValue(DicomElement,String[],DicomCharacterSetType)( 
   element ,
   value ,
   characterSet 
)
public:
bool SetStringValue( 
   DicomElement^ element,
   array<String^>^ value,
   DicomCharacterSetType characterSet
) 

Parameters

element
An item in the Data Set.
value
Character string that contains the string value(s) to set. If you want to set multiple values in the Value Field, put all string values in this array.
characterSet
Character set to use when inserting the input string.

Return Value

true if the string value(s) were set successfully. false if could not set the string value(s) of the Data Element.
Remarks
If more than one value is stored in the Value Field of the Data Element, you must set all values at the same time.

This method can be called only if the Value Representation of the Data Element is:

For more information about Value Representations, refer to Default Value Representation Table.
Example
For an example, refer to SetStringValue(DicomElement,String,DicomCharacterSetType)
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
SetValue Method
SetStringValue(DicomElement,String,DicomCharacterSetType) Method
SetStringValue(DicomElement,String[],DicomCharacterSetType) Method
SetStringValue(DicomElement,String) Method
SetStringValue(DicomElement,String[]) Method
SetStringValuePtr(DicomElement,IntPtr,Int32) Method
SetStringValuePtr(DicomElement,IntPtr,UInt32,DicomCharacterSetType) Method
SetBinaryValue(DicomElement,Byte[],Int32) Method
SetShortValue(DicomElement,Int16[],Int32) Method
SetIntValue(DicomElement,Int32[],Int32) Method
SetFloatValue(DicomElement,Single[],Int32) Method
SetDoubleValue(DicomElement,Double[],Int32) Method
SetAgeValue Method
SetDateValue(DicomElement,DicomDateValue[]) Method
SetTimeValue(DicomElement,DicomTimeValue[]) Method
SetDateTimeValue(DicomElement,DicomDateTimeValue[]) Method
SetConvertValue(DicomElement,String,Int32) Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features